package com.piggy.im.server;

import com.piggy.common.satoken.annotation.EnableCustomConfig;
import com.piggy.common.satoken.annotation.EnableCustomFeignClients;
import com.piggy.common.swagger.annotation.EnableCustomSwagger2;
import com.piggy.im.mq.model.SmsMsgMQ;
import com.piggy.im.mq.model.StationMsgMQ;
import com.piggy.im.service.SmsMsgSend;
import com.piggy.im.service.StationMsgSend;
import com.piggy.mq.annotation.ScanMQBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Import;

import java.util.TimeZone;


/**
 * @author liuyadu
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableCustomFeignClients
@RefreshScope
@SpringBootApplication
@ScanMQBean(scanBasePackages = {"com.piggy.im.mq.model"})
public class PIGYImApplication {

    public static void main(String[] args) {
        TimeZone timeZone = TimeZone.getTimeZone("GMT+8");
        TimeZone.setDefault(timeZone);
        SpringApplication.run(PIGYImApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  消息中心启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }

}
